import request from '../../service/index.js'

// 首页信息
export const index = data => {
	return request({
		path: '/api/secar/index',
		method: 'GET',
		data,
		module: 'car'
	})
}


// 车辆详情
export const carInfo = data => {
	return request({
		path: '/api/secar/secondcar',
		method: 'GET',
		data,
		module: 'car'
	})
}


// 车系列表

export const brandsList = () => {
	return request({
		path: '/api/secar/getbrands',
		method: 'GET',
		
		module: 'car'
	})
}


// 筛选列表
export const getcarList = data => {
	return request({
		path: '/api/secar/getLists',
		method: 'GET',
		data,
		module: 'car'
	})
}

// 上错车图片
export const sellCar = data => {
	return request({
		path: '/api/secar/sellCar',
		method: 'post',
		data,
		module: 'car'
	})
}

// 支付
export const wPay = data => {
	return request({
		path: '/api/orders/wPay',
		method: 'POST',
		data,
		module: 'car'
	})
}


// 获取配置
export const cardvin = data => {
	return request({
		path: '/api/secar/cardvin',
		method: 'get',
		data,
		module: 'car'
	})
}


// 获取手机号
export const getsellphone = data => {
	return request({
		path: '/api/secar/getsellphone',
		method: 'get',
		data,
		module: 'car'
	})
}


// 车系列表
export const getvehicle = data => {
	return request({
		path: '/api/secar/getvehicle',
		method: 'get',
		data,
		module: 'car'
	})
}


// 车型列表
export const getCarInfos = data => {
	return request({
		path: '/api/secar/getCarInfos',
		method: 'get',
		data,
		module: 'car'
	})
}



// 识别vin

export const vinCar = data => {
	return request({
		path: '/api/secar/vinCar',
		method: 'get',
		data,
		module: 'car'
	})
}


// 加入收藏

export const collect = data => {
	return request({
		path: '/api/secar/collect',
		method: 'post',
		data,
		module: 'car'
	})
}

// 预约买车
export const reservation = data =>{
	return request({
		path: '/api/secar/buyCar',
		method: 'post',
		data,
		module: 'car'
	})
}